package cn.jbolt.ai.common.entity;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "upload.qiniu")//获取配置
public class QiniuConfig {

    //七牛云提供的密钥对，用于身份验证
    private String accessKey;
    private String secretKey;
    //区域
    private String region;
    //存储空间绑定的域名
    private String domain;
    //桶名
    private String bucket;

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getRegion() {
        return region;
    }

    public void setRegion(String region) {
        this.region = region;
    }

    public String getDomain() {
        return domain;
    }

    public void setDomain(String domain) {
        this.domain = domain;
    }




    public String getBucket() {
        return bucket;
    }

    public void setBucket(String bucket) {
        this.bucket = bucket;
    }
    public QiniuConfig() {
    }
    public QiniuConfig(String accessKey, String secretKey, String region, String domain, String bucket) {
        this.accessKey = accessKey;
        this.secretKey = secretKey;
        this.region = region;
        this.domain = domain;
        this.bucket = bucket;
    }
}
